<template>
    <div>

      <el-form :inline="false" :model="formData1" class="demo-form-inline">
        <el-form-item label="身份证">
          <el-input v-model="formData1.code" placeholder="身份证"></el-input>
        </el-form-item>
        <el-form-item label="名称">
          <el-input v-model="formData1.userName" placeholder="名称"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="renzheng">提交认证</el-button>
        </el-form-item>
      </el-form>

    </div>
</template>

<script>
    export default {
        name: "userList",
        data(){
          return{
            formData1:{
              code:"",
              userName:""
            }
          }
        },
        methods:{
          renzheng(){
             this.$axios.post(this.$myInfo.loginPath+"shimingrenzheng",this.formData1).then((response)=>{

                if(response.data.code==200 ){
                   this.$message({type:"success",message: response.data.msg})
                }else{
                   this.$message({type:"error",message: response.data.msg})
                }

             }).catch((error)=>{

             })
          }
        }
    }
</script>

<style scoped>

</style>
